import { IsNotEmpty } from 'class-validator'
import { Exclude } from 'class-transformer'
import { CreateMenuDTO } from './create-menu.dto'
import { PartialType } from '@nestjs/mapped-types'

export class UpdateMenuDTO extends PartialType(CreateMenuDTO) {
  @IsNotEmpty({ message: '菜单 id 不可为空' })
  id: string

  @Exclude()
  createBy: string
}
